main: Treat default osname more consistently
authorColin Walters <walters@verbum.org>
Sun, 27 Oct 2013 20:41:40 +0000 (16:41 -0400)
committerColin Walters <walters@verbum.org>
Mon, 28 Oct 2013 13:15:32 +0000 (09:15 -0400)
commitaffccb343a61262cc87af283241c62385c88a681
treeac1135b0b2d820204de0364dec9b0ba24b897a2c
parent7ecfbff26e629509e3ae02867b43ee0ef4ed1018
main: Treat default osname more consistently

The libostree already treats passing NULL for osname as "booted
osname, if any".  We should do the same inside the tools.  The upgrade
builtin had this logic duplicated there; we should be able to safely
remove it.

https://bugzilla.gnome.org/show_bug.cgi?id=710970
src/ostree/ot-admin-builtin-upgrade.c
src/ostree/ot-admin-functions.c